package thread.thread_04_20.concurrent_sort;

import java.util.Random;

/**
 * @author Stark
 * @description 生成数组
 * @date 2022/4/21 16:20
 **/
public class ArrayHelper {
    public static long[] generateArray(int n){
        Random random = new Random(20220420);
        long[] array = new long[n];
        for(int i = 0; i < n ; i++){
            array[i] = random.nextInt();
        }
        return array;
    }
}
